package com.example.bankend.service.impl;



import com.example.bankend.model.BankCard;

import java.util.List;

public interface CardService {


    int insert(BankCard card);

    int deleteByPrimaryKey(String cardID);

    int updateByPrimaryKey(BankCard card);

    BankCard selectByPrimaryKey(String cardID);
    //更改密码
    int updatePassByCardID(BankCard bankCard);
    //挂失
    int reportLoss(String cardID); //挂失
    int dereportLoss(String cardID);//解挂
    List<BankCard> selectAll();
    List<BankCard> getCardsByUsername(String username);

    //某一个总经济
    Double getTotalBalanceByUsername(String username);

    //新增查询总余额的方法
    Double getTotalBalance();
    //新增查询银行卡总数的方法
    int getTotalCards();

}